<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<html>
<head>
<meta charset="UTF-8">
<title>{:C('SITE_NAME')}</title>
<script type="text/javascript" src="__JS__/jquery.js"></script>
<script type="text/javascript" src="__JS__/common.js"></script>
<script type="text/javascript" src="__JS__/jquery.validation.min.js"></script>
<link href="__CSS__/login.css" rel="stylesheet" type="text/css">
<style type="text/css">
body {
	background-color: #666666;
	background-image: url("");
	background-repeat: no-repeat;
	background-position: center top;
	background-attachment: fixed;
	background-clip: border-box;
	background-size: cover;
	background-origin: padding-box;
	width: 100%;
	padding: 0;
}
</style>
</head>
<body>
<div class="bg-dot"></div>
<div class="login-layout">
  <div class="top">
    <h5>{:C('SITE_NAME')}<em></em></h5>
    <h2>管理平台</h2>
    <h6></h6>
  </div>
  <div class="box">
    <form method="post" name="form" id="form">
      <span><label>账号</label><input name="username" id="username" autocomplete="on" type="text" class="input-text" required></span>
      <span><label>密码</label><input name="password" id="password" class="input-password" autocomplete="off" type="password" required pattern="[\S]{6}[\S]*" title="密码不少于6个字符"></span>
	  <span>
      	<div class="code">
        <div class="arrow"></div>
        <div class="code-img"><img src="/admin/login/captcha/" name="codeimage" id="codeimage" border="0"/></div>
        <a href="JavaScript:void(0);" id="hide" class="close" title="关闭"><i></i></a>
        <a href="JavaScript:void(0);" onclick="javascript:document.getElementById('codeimage').src='/admin/login/captcha/?t=' + Math.random();" class="change" title="看不清,点击更换验证码"><i></i></a>
		</div>
     	<input name="captcha" type="text" required class="input-code" id="captcha" placeholder="输入验证" pattern="[A-z0-9]{4}" title="验证码为4个字符" autocomplete="off" value="" >
      </span> 
      <span><input name="submit" class="input-button" type="submit" value="登陆"></span>
    </form>
  </div>
</div>
<div class="bottom">
  <h5>Powered by {:C('SITE_NAME')}</h5>
  <h6 title="{:C('SITE_NAME')}">© 2015-2016 <a href="{:C('SITE_URL')}" target="_blank">{:C('SITE_NAME')} Inc.</a></h6>
</div>

<script type="text/javascript">
$(document).ready(function(){
    var random_bg=Math.floor(Math.random()*4+1);
    var bg='url(__IMG__/login/bg_'+random_bg+'.jpg)';
    $("body").css("background-image",bg);
    $("#hide").click(function(){
        $(".code").fadeOut("slow");
    });
    $("#captcha").focus(function(){
        $(".code").fadeIn("fast");
    });
    if(top.location!=this.location)	top.location=this.location;
    $('#username').focus();
    if ($.browser.msie && $.browser.version=="6.0"){
        window.location.href='/data/ie6update.html';
    }
    $("#captcha").nc_placeholder();
});
</script>
</body>
</html>
